<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

class b2c_finder_tips{
    var $detail_basic = '基本信息';
    var $column_control = '操作';

    function __construct($app){
        $this->app = $app;
    }

    function column_control($row){
        $returnValue = '<a href="index.php?app=b2c&ctl=admin_goods_tips&act=add&p[0]='.$row['gnotify_id'].'&finder_id='.$_GET['_finder']['finder_id'].'" target="dialog::{width:700,height:400,title:\'编辑发货提示规则\'}">'.app::get('b2c')->_('编辑').'</a>';
        return $returnValue;
    }
    
    //发货提示查看功能-发货提示信息显示
    function detail_basic($tid){

        $render =  app::get('b2c')->render();
        $o = $render->app->model('goods_tips');
        $value_arr=$o->getList('value',array('gnotify_id'=>$tid));

        $get_value=unserialize($value_arr[0]['value']);//反序列化

        $render->pagedata['goods'] = &$get_value;
        return $render->fetch('admin/goods/detail/goods_tips_detail.html');
    }      
}
    
    
	    
